<template>
    <h1>Person Info</h1>
   <Person001 ref="rPerson"/>
   <hr/>
   <button @click="showPerson">显示person信息</button>
</template>

<script lang="ts" setup>
    import Person001 from './components/Person.vue';
    import { ref } from 'vue';

    let rPerson = ref()

    function showPerson() {
        console.log(rPerson)
        console.log("Person信息：", rPerson.value.person)
        let person = rPerson.value.person
        person.name = '王老五'
    }
</script>

<style>
</style>
